package com.example.HomeWork4.service.impl;

import com.example.HomeWork4.mapper.UserMapper;
import com.example.HomeWork4.pojo.User;
import org.mybatis.spring.mapper.MapperFactoryBean;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;
public class UserServiceImpl implements UserServiceImpl2 {
    @Autowired
    private UserMapper userMapper;

    @Override
    public List<User> getUserList() {
        return userMapper.getUserList();
    }

    public void setUserMapper(MapperFactoryBean userMapper) {
        this.userMapper = (UserMapper) userMapper;
    }
}
